<template>
	<view class="info-box">
		<view class="info-head">
			<u-avatar :src="src" shape="square" size="75"></u-avatar>
			<view class="head-content">
				<view class="title">
					<text class="title-word ellipsis">锅圈食汇火锅烧烤食材店锅圈食汇火锅烧烤食材店锅圈食汇火锅烧烤食材店锅圈食汇火锅烧烤食材店</text>
					<image src="/static/image/common/icon_edit.png" class="icon-edit"></image>
				</view>
				<view class="desc">
					营业时间：07：00-22：00
				</view>
			</view>
			<u-icon name="arrow-right" color="rgba(153, 153, 153, 0.5)" size="22"></u-icon>
		</view>
		<view class="oper-box">
			<view class="oper">
				<u-switch v-model="value1" activeColor="#28C520" inactiveColor="rgba(0, 0, 0, 0.04)" size="16"></u-switch>
				<text class="oper-text">营业中</text>
			</view>
			<view class="oper">
				<u-switch v-model="value2" activeColor="#28C520" inactiveColor="rgba(0, 0, 0, 0.04)" size="16"></u-switch>
				<text class="oper-text">自动接单</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				src: '',
				value1:true,
				value2:false
			}
		}
	}
</script>

<style lang="scss" scoped>
	.info-box {
		background-color: #ffffff;
		border-radius: 20rpx;
		padding: 32rpx;
		margin-bottom: 24rpx;
	}
	.info-head {
		display: flex;
		margin-bottom: 20rpx;
	}
	.head-content {
		margin: 0 24rpx ;
		flex:2;
		.title {
			font-size: 32rpx;
			font-weight: 500;
			margin-bottom: 34rpx;
			display: flex;
			align-items:center;
		}
		.title-word {
			width: 100px;    
			flex:2;
		}
		.desc {
			color: #999999;
			font-size: 28rpx;
			margin-bottom: 28rpx;
		}
		.icon-edit {
			width: 28rpx;
			min-width:28rpx;
			max-width: 28rpx;
			height: 28rpx;
			margin-left: 12rpx;
		}
	}
	.oper-box {
		display: flex;
		justify-content: space-around;
		.oper {
			border-radius: 50rpx;
			background: #F0F4F7;
			padding:24rpx 82rpx 24rpx 22rpx;
			display: flex;
			align-items: center;
			color: #333333;
			font-size: 28rpx;
			font-weight: 500;
		}
		.oper-text {
			margin-left: 42rpx;
		}
	}
</style>